# Maintainer: Filipe Laíns (FFY00) <filipe.lains@gmail.com>

pkgname=inspectrum
pkgver=0.2.3
pkgrel=3
pkgdesc='Tool for analysing captured signals, primarily from software-defined radio receivers'
arch=('loong64' 'x86_64')
url='https://github.com/miek/inspectrum'
license=('GPL')
depends=('qt5-base' 'fftw' 'liquid-dsp')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('517e6fc8048a41377dcb3cf72dfb308b7ae5fafadc6056abe37ac3ef7deb5bc1931b02a5d6bdac45c81dddb4d943550830f55d076e591c19053339ed836389c6')

build() {
  mkdir -p $pkgname-$pkgver/build
  cd $pkgname-$pkgver/build

  cmake -DCMAKE_INSTALL_PREFIX=/usr ..

  make
}

package() {
  cd $pkgname-$pkgver/build

  make DESTDIR="$pkgdir" install
}

